diff --git a/admin/admin_home.php b/admin/admin_home.php index 73bcc07b0fbbee3aa9ed3ca1eeff5460306d7ce4..dd07912108b010df7070256a9b65837288a455c7 100644 --- a/admin/admin_home.php +++ b/admin/admin_home.php @@ -13,14 +13,10 @@ include_once "admin/admin_members.php"; include_once "admin/admin_users.php"; include_once "admin/admin_blacklist.php"; - - if ($_SESSION["user_right"] >= $GLOBALS["REPORTER"] ) { - -$str = ' - - + $str = '
'; + $str .= '
diff --git a/css/default.css b/css/default.css new file mode 100644 index 0000000000000000000000000000000000000000..4538282a5081bd903db7b0eb74d81e6778edc832 --- /dev/null +++ b/css/default.css @@ -0,0 +1,462 @@ +@charset "UTF-8"; +/* CSS Document */ + +* { + margin: 0px; + padding: 0px; + font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; +} + +body { + background: #000000; + margin: 0px; + padding: 0px; + font-size: 11px; + color: #CCCCCC; + font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; +} + +a { + text-decoration: none; + color: #cccccc; +} + +ul, li { + list-style-type: none; + padding: 0px; + margin: 0px; +} + +li { + display: inline; +} + +li a { + display: inline; +} + +img { + margin: 0 auto; + padding: 0px; +} + +.clr { + clear: both; + height: 0px; +} + +.copyrights { + color: #646464; + font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; + text-align: center; + margin: 10px 0px 0px 0px; +} + +/* +** main header body footer container +*/ +#main_container { + position: relative; + background: #303030; + /* test background background: #00ff00; */ + top: 0px; + width: 901px; + margin: 0 auto; +} + +#main_body { + margin: 0px 0px 0px 0px; + background: #303030; + border-left: 1px solid #646464; + border-right: 1px solid #646464; +} + +#main_header_home { + height: 100px; + border-left: 1px solid #646464; + border-right: 1px solid #646464; + border-bottom: 1px solid #646464; + background: #003366; + background: url(../images/jukebox_2.jpg) no-repeat; +} + +#main_header_membres { + height: 249px; + background: url(../images/nomad_v5_top_membres.png) no-repeat; +} + +#main_header_cours { + height: 249px; + background: url(../images/nomad_v5_top_cours.png) no-repeat; +} + +#main_header_releases { + height: 249px; + background: url(../images/nomad_v5_top_releases.png) no-repeat; +} + +div.top_box +{ + margin-top: 40px; + text-align: center; +} + +/* +** header/menu class & id +*/ +#menu ul, #menu li { + margin:0; + padding: 0; + list-style-type: none; +} + +#menu ul { + position: absolute; + height: 22px; + /*width: 334px;*/ + left: 200px; + top: 101px; +} + +#menu li { + float: left; +} + +#menu li a { /* dimensions et définitions des boutons */ + display: block; /* mise en block de pour lui donner des dimensions */ + height: 22px; + color: #B8B8B8; + padding: 8px 0px 0px 0px; + font-size: 13px; + font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; + text-decoration: none; + text-align: center; +} + +#menu li a:hover { /* dimensions et définitions des boutons */ + display: block; /* mise en block de pour lui donner des dimensions */ + height: 22px; + color: #99FF33; + font-size: 13px; + font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; + text-decoration: none; + text-align: center; +} + +#menu a#tabs_home { + width: 79px; + background: transparent url(../images/maquette_decoupe_03.png) top left no-repeat; +} +#menu a#tabs_members { + width: 83px; + background: transparent url(../images/maquette_decoupe_05.png) top left no-repeat; +} +#menu a#tabs_cours { + width: 83px; + background: transparent url(../images/maquette_decoupe_05.png) top left no-repeat; +} +#menu a#tabs_releases { + width: 81px; + background: transparent url(../images/maquette_decoupe_07.png) top left no-repeat; +} + +#menu_left { + position: absolute; + left: 0px; + top: 101px; + height: 30px; + width: 159px; +} + +#menu_right { + position: absolute; + right: 0px; + top: 101px; + height: 30px; + width: 163px; +} + +/* +** main body +*/ + +div#newsbox { + /*width: 530px;*/ + margin: 0px 15px 20px 15px; +} + +div#newsbox ul { + background: #1D1D1D; + padding: 15px; +} + +div#newsbox li { + display: block; +} + +div#newsbox h1 { + height: 26px; + font-size: 14px; + font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; + padding: 10px; + background: #1D1D1D; + color: #B8B8B8; + border-bottom: 1px solid #303030; +} + +.rightbox a { + text-decoration: none; + color: #cccccc; +} + +.rightbox a:hover { + text-decoration: none; + color: #99FF33; +} + +div.rightbox { + width: 320px; + margin: 0px 15px 15px 0px; +} + +div.rightbox ul { + background: #1D1D1D; + padding: 0px; + width: 320px; +} + +div.rightbox li { + display: block; + padding: 5px 0px 8px 15px; + font-size:12px; + color:#cccccc; + border-bottom: 1px solid #303030; +} + +div.rightbox h1 { + height: 26px; + font-size: 14px; + font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; + padding: 10px; + background: #1D1D1D; + color: #B8B8B8; + border-bottom: 1px solid #303030; +} + +#all_side { + float: left; + padding: 0px; + margin: 0px; + background: #303030; +} + +#left_side { + float: left; + width: 550px; + padding: 0; + background: #303030; +} + +#newsbox h2 { + color: #B8B8B8; + margin: 10px 0px 0px 0px; + padding: 0px 0px 0px 10px; + background: url(../images/puce_carre.jpg) left no-repeat; +} + +.news_date { + color: #6D6C6C; + margin: 10px 0px 0px 0px; + padding: 0px 0px 0px 5px; +} + +.news_separator { + margin: 0px 0px 0px -15px; + padding:0; +} + +.news_text { + font-size: 12px; + color: #B8B8B8; + margin: 10px 0px 0px 0px; + padding: 0px 0px 5px 20px; +} + +#left_side h3 { + color: #aaa28b; + margin: 10px 0px 0px 0px; + padding: 0px 0px 0px 5px; +} + +#right_side { + float: right; + width: 330px; +} + +div#menu +{ + float:left; + margin-bottom: 20px; + width: 900px; + height: 130px; +} + +/* + #right_side li a:hover { + color: #cfc5ab; + height: 26px; + font: 10px Verdana, "Lucida Grande", Tahoma, Helvetica, Sans-Serif; + text-decoration: none; + } + +#right_side li { +display: block; +list-style-type: none; +padding: 0; +margin: 0; +} + +#right_side ul { +margin: 0px 0px 0px 10px; +} + +#right_side li a,span{ +color: #aaa28b; +height: 26px; +font: 10px Verdana, "Lucida Grande", Tahoma, Helvetica, Sans-Serif; +text-decoration: none; +} +*/ + +#right_side h2 { + color: #aaa28b; + margin: 10px 0px 0px 0px; + padding: 0px 0px 0px 5px; + font-size: 12px; + font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; +} + +#right_side h3 { + color: #aaa28b; + margin: 10px 0px 0px 0px; + padding: 0px 0px 0px 5px; + font-size: 12px; + font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; +} + + +/* + ** footer class & id + */ + +#main_footer { + position: relative; + margin: 0 auto; + width: 901px; + height: 47px; +} + +#foot_menu { + background: #303030; + border-left: 1px solid #646464; + border-right: 1px solid #646464; +} + +#foot_menu ul { + height: 15px; + width: 860px; + margin: 0 auto; + text-align: center; +} + +#foot_menu li { + display: inline; + margin: 0 10px; +} + +#foot_menu li a { + color: #B8B8B8; + font-size: 9px; + font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; + text-decoration: none; +} + +#foot_menu li a:hover, a:active { + color: #B8B8B8; + font-size: 9px; + font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; + text-decoration: none; +} + +#foot_logo { + float: right; + position: relative; + top: 4px; + right: 20px; +} + +#foot_menu img { + position: relative; + top: 5px; + border: 0; +} + +.footnoimg { + background: none; +} + +#ft_img_left { + position: absolute; + left: 0px; + height: 19px; + width: 19px; + background: url(../images/corner_24.png) no-repeat; +} + +#ft_img_mid { + position: absolute; + left: 19px; + height: 18px; + width: 863px; + background: #303030; + border-bottom: 1px solid #646464; + +} + +#ft_img_right { + position: absolute; + right: 0px; + height: 19px; + width: 19px; + background: url(../images/corner_24_r.png) no-repeat; +} + +#logo_edito { + float: left; +} + +table a.texte_link,table { + color: #FFFFFF; +} + +a:hover { + text-decoration: none; + color: #99FF33; +} + +a:active { + text-decoration: none; + color: #99FF33; +} + +.back_tendu { + background-color:#460002; +} + +.back_private { + background-color:#990000; +} + +img.daily_preview { + margin-bottom: -5px; +} diff --git a/css/eptv.css b/css/eptv.css deleted file mode 100644 index 2352845660fc47939ccb3a4045ae24dcb24abedb..0000000000000000000000000000000000000000 --- a/css/eptv.css +++ /dev/null @@ -1,114 +0,0 @@ -.back{ -background-color:#000000; -} -.back_tendu{ -background-color:#A8A8C6; -} -.back_private{ -background-color:#DFBE5B; -} - - -.titre_rubrique{ - color:#FFFFFF; - font-family:courier; - font-size:16px; - font-weight:bold; -} -.titre_sous_rubrique{ - color:#000000; - font-family:courier; - font-size:15px; - font-weight:bold; -} -.texte_normal{ - color:#000000; - font-family:courier; - font-size:14px; - font-weight:none; -} -.texte_date{ - color:#808080; - font-family:courier; - font-size:15px; - font-weight:none; -} -/*.texte_link{ - color:#000099; - font-family:courier; - font-size:12px; - font-weight:none; -} -.texte_link:hover{ - color:#B8C16F; - font-family:courier; - font-size:12px; - font-weight:none; -} -.texte_link:visited{ - color:#123456; - font-family:courier; - font-size:12px; - font-weight:none; -}*/ -.texte_info{ - color:#999999; - font-family:courier; - font-size:13px; - font-weight:bold; -} -.texte_info:hover{ - color:#B8C16F; - font-family:courier; - font-size:13px; - font-weight:bold; -} -.texte_input{ - color:#8B1B14; - font-family:courier; - font-size:12px; - font-weight:none; -} -.menu{ - color:#8B1B14; - font-family:courier; - font-size:19px; - font-weight:bold; - text-decoration:none; -} -.menu:hover{ - color:#B8C16F; - font-family:courier; - font-size:19px; - font-weight:bold; - text-decoration:none; -} -/*.lien{ - color:#999999; - font-family:courier; - font-size:13px; - font-weight:bold; - text-decoration:none; -} -.lien:hover{ - color:#B8C16F; - font-family:courier; - font-size:13px; - font-weight:bold; - text-decoration:none; -}*/ -.button{ - font:courier; - font-size:10px; - background-color:#888888; -} -.small_button{ - font:courier; - font-size:9px; - background-color:#888888; -} -.textarea{ - font:courier; - font-size: 12px; -} - diff --git a/css/main.css b/css/main.css deleted file mode 100644 index ae124756e6f54cf3901f43e222d638931c8d41e5..0000000000000000000000000000000000000000 --- a/css/main.css +++ /dev/null @@ -1,454 +0,0 @@ -@charset "UTF-8"; -/* CSS Document */ - -body -{ - background: #000000; - margin: 0px; - padding: 0px; - font-size: 11px; - color: #CCCCCC; - font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; -} -* { - margin: 0px; - padding: 0px; - font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; -} -ul, li { - list-style-type: none; - padding: 0px; - margin: 0px; -} -li { - display: inline; -} -li a { - display: inline; -} -img { - margin: 0 auto; - padding: 0px; -} -.clr { - clear: both; - height: 0px; -} - -.copyrights { - color: #646464; - font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; - text-align: center; - margin: 10px 0px 0px 0px; -} - - -/* -** main header body footer container -*/ -#main_container { - position: relative; - background: #303030; - top: 0px; - width: 901px; - margin: 0 auto; -} - -#main_body { - margin: 0px 0px 0px 0px; - background: #303030; - border-left: 1px solid #646464; - border-right: 1px solid #646464; -} - -#main_header_home { - height: 100px; - border-left: 1px solid #646464; - border-right: 1px solid #646464; - border-bottom: 1px solid #646464; - background: #003366; - background: url(../images/jukebox_2.jpg) no-repeat; -} - -#main_header_membres { - height: 249px; - background: url(../images/nomad_v5_top_membres.png) no-repeat; -} - -#main_header_cours { - height: 249px; - background: url(../images/nomad_v5_top_cours.png) no-repeat; -} - -#main_header_releases { - height: 249px; - background: url(../images/nomad_v5_top_releases.png) no-repeat; -} - - -div.top_box -{ - margin-top: 40px; - text-align: center; -} - -/* -** header/menu class & id -*/ -#menu ul, #menu li { - margin:0; - padding: 0; - list-style-type: none; - } -#menu ul { - position: absolute; - height: 22px; - /*width: 334px;*/ - left: 200px; - top: 101px; -} -#menu li { - float: left; -} -#menu li a { /* dimensions et définitions des boutons */ - display: block; /* mise en block de pour lui donner des dimensions */ - height: 22px; - color: #B8B8B8; - padding: 8px 0px 0px 0px; - font-size: 13px; - font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; - text-decoration: none; - text-align: center; -} - -#menu li a:hover { /* dimensions et définitions des boutons */ - display: block; /* mise en block de pour lui donner des dimensions */ - height: 22px; - color: #99FF33; - font-size: 13px; - font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; - text-decoration: none; - text-align: center; -} - -#menu a#tabs_home { - width: 79px; - background: transparent url(../images/maquette_decoupe_03.png) top left no-repeat; -} -#menu a#tabs_members { - width: 83px; - background: transparent url(../images/maquette_decoupe_05.png) top left no-repeat; -} -#menu a#tabs_cours { - width: 83px; - background: transparent url(../images/maquette_decoupe_05.png) top left no-repeat; -} -#menu a#tabs_releases { - width: 81px; - background: transparent url(../images/maquette_decoupe_07.png) top left no-repeat; -} - -#menu_left { - position: absolute; - left: 0px; - top: 101px; - height: 30px; - width: 159px; -} - -#menu_right { - position: absolute; - right: 0px; - top: 101px; - height: 30px; - width: 163px; -} - -/* -** main body -*/ - -div#newsbox { - /*width: 530px;*/ - margin: 0px 15px 20px 15px; -} - -div#newsbox ul { - background: #1D1D1D; - padding: 15px; -} - -div#newsbox li { - display: block; -} - -div#newsbox h1 { - height: 26px; - font-size: 14px; - font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; - padding: 10px; - background: #1D1D1D; - color: #B8B8B8; - border-bottom: 1px solid #303030; -} - -.rightbox a { - text-decoration: none; - color: #cccccc; -} - -.rightbox a:hover { - text-decoration: none; - color: #99FF33; -} - -div.rightbox { - width: 320px; - margin: 0px 15px 15px 0px; -} - -div.rightbox ul { - background: #1D1D1D; - padding: 0px; - width: 320px; -} - -div.rightbox li { - display: block; - padding: 5px 0px 8px 15px; - font-size:12px; - color:#cccccc; - border-bottom: 1px solid #303030; -} - -div.rightbox h1 { - height: 26px; - font-size: 14px; - font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; - padding: 10px; - background: #1D1D1D; - color: #B8B8B8; - border-bottom: 1px solid #303030; -} - -#all_side { - float: left; - padding: 0px; - margin: 0px; - background: #303030; -} - -#left_side { - float: left; - width: 550px; - padding: 0; - background: #303030; -} - -#newsbox h2 { - color: #B8B8B8; - margin: 10px 0px 0px 0px; - padding: 0px 0px 0px 10px; - background: url(../images/puce_carre.jpg) left no-repeat; -} - -.news_date { - color: #6D6C6C; - margin: 10px 0px 0px 0px; - padding: 0px 0px 0px 5px; -} - -.news_separator { - margin: 0px 0px 0px -15px; - padding:0; -} - -.news_text { - font-size: 12px; - color: #B8B8B8; - margin: 10px 0px 0px 0px; - padding: 0px 0px 5px 20px; -} - -#left_side h3 { - color: #aaa28b; - margin: 10px 0px 0px 0px; - padding: 0px 0px 0px 5px; -} - -#right_side { - float: right; - width: 330px; -} - -div#menu -{ - float:left; - margin-bottom: 20px; - width: 900px; - height: 130px; -} - -/* -#right_side li a:hover { - color: #cfc5ab; - height: 26px; - font: 10px Verdana, "Lucida Grande", Tahoma, Helvetica, Sans-Serif; - text-decoration: none; -} - -#right_side li { - display: block; - list-style-type: none; - padding: 0; - margin: 0; -} - -#right_side ul { - margin: 0px 0px 0px 10px; -} - -#right_side li a,span{ - color: #aaa28b; - height: 26px; - font: 10px Verdana, "Lucida Grande", Tahoma, Helvetica, Sans-Serif; - text-decoration: none; -} -*/ -#right_side h2 { - color: #aaa28b; - margin: 10px 0px 0px 0px; - padding: 0px 0px 0px 5px; - font-size: 12px; - font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; -} - -#right_side h3 { - color: #aaa28b; - margin: 10px 0px 0px 0px; - padding: 0px 0px 0px 5px; - font-size: 12px; - font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; -} - - -/* -** footer class & id -*/ - -#main_footer { - position: relative; - margin: 0 auto; - width: 901px; - height: 47px; -} - -#foot_menu { - background: #303030; - border-left: 1px solid #646464; - border-right: 1px solid #646464; -} - -#foot_menu ul { - height: 15px; - width: 860px; - margin: 0 auto; - text-align: center; -} - -#foot_menu li { - display: inline; - margin: 0 10px; -} - -#foot_menu li a { - color: #B8B8B8; - font-size: 9px; - font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; - text-decoration: none; -} - -#foot_menu li a:hover, a:active { - color: #B8B8B8; - font-size: 9px; - font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif; - text-decoration: none; -} - -#foot_logo { - float: right; - position: relative; - top: 4px; - right: 20px; -} - -#foot_menu img { - position: relative; - top: 5px; - border: 0; -} - -.footnoimg { - background: none; -} - -#ft_img_left { - position: absolute; - left: 0px; - height: 19px; - width: 19px; - background: url(../images/corner_24.png) no-repeat; -} - -#ft_img_mid { - position: absolute; - left: 19px; - height: 18px; - width: 863px; - background: #303030; - border-bottom: 1px solid #646464; - -} - -#ft_img_right { - position: absolute; - right: 0px; - height: 19px; - width: 19px; - background: url(../images/corner_24_r.png) no-repeat; -} - -#logo_edito { - float: left; -} - -a { - text-decoration: none; - color: #cccccc; -} - -table a.texte_link,table -{ - color: #FFFFFF; -} - -a:hover { - text-decoration: none; - color: #99FF33; -} - -a:active { - text-decoration: none; - color: #99FF33; -} -.back_tendu{ -background-color:#460002; -} -.back_private{ -background-color:#990000; -} - -img.daily_preview -{ - margin-bottom: -5px; -} diff --git a/include/connection.php b/include/connection.php index 397381c15fae49ce680f02f98e77173ef73858b0..331334c17afbc2836d33061fc2afb969771b2f46 100644 --- a/include/connection.php +++ b/include/connection.php @@ -1,64 +1,49 @@
'; - - - /////// BEGIN TABLE DOWN /////// - if ($_SESSION["user_right"] == "ANONYM") { -// $str .= dispConnectionRegister(); // HIDE WAITING FORUM - } - else if ($_SESSION["user_right"] == "EPI") { -// $str .= dispConnectionEpiRegister(); // HIDE WAITING REGISTER PAGE - } - else { -// $str .= dispConnectionProfile(); // HIDE WAITING EDIT PROFIL - } - - - echo $str; + /////// BEGIN TABLE UP /////// + if ($_SESSION["user_right"] == 0) + $str .= dispConnectionLogin(); + else + $str .= dispConnectionDisconnect(); + + /////// BEGIN SPACE /////// + //$str .= '
'; + + /////// BEGIN TABLE DOWN /////// + if ($_SESSION["user_right"] == "ANONYM") { + // $str .= dispConnectionRegister(); // HIDE WAITING FORUM + } + else if ($_SESSION["user_right"] == "EPI") { + // $str .= dispConnectionEpiRegister(); // HIDE WAITING REGISTER PAGE + } + else { + // $str .= dispConnectionProfile(); // HIDE WAITING EDIT PROFIL + } + + echo $str; } - - function dispConnectionLogin() { /////// CONNECTION LOGIN /////// - - $str = dispTableBegin("c o n n e x i o n", "30", 1); - - if ($_SERVER['HTTPS'] == "on") - $str .= ' - -
- Login - - Pass - -
-
- '; - else - $str .= "Pour vous connecter au site, vous devez utiliser une connexion SSL!"; - - $str .= dispTableEnd(); - - return ($str); + $str = '
'; + $str .= dispTableBegin("c o n n e x i o n", "30", 1); + if ($_SERVER['HTTPS'] == "on") { + $str .= '
'; + $str .= 'Login'; + $str .= ''; + $str .= 'Pass'; + $str .= ''; + $str .= '
'; + $str .= '
'; + } + else + $str .= "

Pour vous connecter au site, vous devez utiliser une connexion SSL!

"; + + $str .= dispTableEnd(); + $str .= '
'; + return ($str); } - - function dispConnectionRegister() { /////// CONNECTION REGISTER /////// diff --git a/include/dailymotion.php b/include/dailymotion.php index 02d1c204652ffe0dc1424b401fb0ee3c95b6675b..169a0628fe6bb45d1a301da495ee73848579983d 100644 --- a/include/dailymotion.php +++ b/include/dailymotion.php @@ -1,11 +1,13 @@ EPTV - Dailymotion Preview
+function getDailymotion($url) { + die("Unavailable!"); + + echo 'EPTV - Dailymotion Publication
'; -} + return; + } ?> \ No newline at end of file diff --git a/include/functions_display.php b/include/functions_display.php index 0d8194d3c522ae2faf573878bc170ecb787aa64d..13f5893b5acd6900bc0e109f835955510f2f9970 100644 --- a/include/functions_display.php +++ b/include/functions_display.php @@ -1,6 +1,5 @@ '; @@ -46,10 +45,6 @@ return $str; } - - - - function dispWhenTendu($tendu) { @@ -68,11 +63,8 @@ function dispWhenTendu($tendu) return $str; - - } - function dispAdminWhenTendu($tendu) { diff --git a/include/functions_sql.php b/include/functions_sql.php index de4193044e22f68de31c9e351468d20f08844225..da54b7c52332efd7a6e11af5c87a72edacfd0855 100644 --- a/include/functions_sql.php +++ b/include/functions_sql.php @@ -1,21 +1,18 @@ -= 7"; - return $result = mysql_query($query); + $query = "select * from $DB.users_db WHERE user_right >= 7"; + return $result = mysql_query($query); } function getAnExistingStatut($statut){ - $query = "select * from $DB.users_db WHERE user_statut = '$statut'"; - return $result = mysql_query($query); + $query = "select * from $DB.users_db WHERE user_statut = '$statut'"; + return $result = mysql_query($query); } - #################################### ########## SQL Blacklist ######## #################################### function getOneBlacklistById($id){ - $query = "select * from $DB.blacklist_db WHERE blacklist_id='$id'"; - return $result = mysql_query($query); + $query = "select * from $DB.blacklist_db WHERE blacklist_id='$id'"; + return $result = mysql_query($query); } function getOneBlacklistByLogin($login){ - $query = "select * from $DB.blacklist_db WHERE blacklist_login='$login'"; - return $result = mysql_query($query); + $query = "select * from $DB.blacklist_db WHERE blacklist_login='$login'"; + return $result = mysql_query($query); } function getAllBlacklist(){ - $query = "select * from $DB.blacklist_db"; - return $result = mysql_query($query); + $query = "select * from $DB.blacklist_db"; + return $result = mysql_query($query); } function getAllBlacksite(){ - $query = "select * from $DB.blacksites_db"; - return $result = mysql_query($query); + $query = "select * from $DB.blacksites_db"; + return $result = mysql_query($query); } function getOneBlacksiteById($id){ - $query = "select * from $DB.blacksites_db WHERE blacksite_id='$id'"; - return $result = mysql_query($query); + $query = "select * from $DB.blacksites_db WHERE blacksite_id='$id'"; + return $result = mysql_query($query); } - ?> \ No newline at end of file diff --git a/include/global.php b/include/global.php new file mode 100644 index 0000000000000000000000000000000000000000..461400f73c4c1669483eb6c56030343ec8f14f53 --- /dev/null +++ b/include/global.php @@ -0,0 +1,11 @@ + diff --git a/include/home.php b/include/home.php index 0c32500058d45f504cc45f71efd9eaf001339e9b..aa77e5b9dc15451a514f65d7b6f1d2c3b184f3b2 100644 --- a/include/home.php +++ b/include/home.php @@ -47,9 +47,6 @@ $str = ' echo $str; } - - - function dispHomeNews(){ $str = ''; @@ -86,63 +83,47 @@ function dispHomeNews(){ } function dispHomeEdito(){ + $result = getLastEdito(); + if (mysql_num_rows($result)) + $edito = mysql_fetch_array($result); - $result = getLastEdito(); - if (mysql_num_rows($result)){ - $edito = mysql_fetch_array($result); - } + $str = ''; - $str = ' - '; - - return ($str); + return ($str); } function dispHomeLastVideos(){ + if ($_SESSION["user_right"] >= $GLOBALS["PRIV_GUEST"]) + $result = getLastVideosByTendu(2); + else if ($_SESSION["user_right"] >= $GLOBALS["GUEST"]) + $result = getLastVideosByTendu(1); + else + $result = getLastVideosByTendu(0); + $str = ''; + } - $str .= ' - - '; + $str .= ''; - return ($str); + return ($str); } ?> diff --git a/include/menu.php b/include/menu.php index 9df97e84fb51aaa64d0b686a648e29dd388b5b06..d3b2ee3e4dea361b3571b412323d55e938e3449d 100644 --- a/include/menu.php +++ b/include/menu.php @@ -1,24 +1,23 @@